package com.ruoyi.backend.mapper;

import com.ruoyi.backend.pojo.EcologicalSupervisionReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface EcologicalSupervisionReportMapper {

    void create(EcologicalSupervisionReport ecologicalSupervisionReport);

    void delete(Integer superviseId);

    void update(EcologicalSupervisionReport ecologicalSupervisionReport);

    List<EcologicalSupervisionReport> search(@Param("mineId") String mineId,
                                             @Param("superviseType") String superviseType,
                                             @Param("superviseTimeStart") LocalDate superviseTimeStart,
                                             @Param("superviseTimeEnd") LocalDate superviseTimeEnd);

    List<EcologicalSupervisionReport> searchAll();

    Integer  getCountId(Integer id);
}
